﻿<%@ page import="java.util.Date" %>
<%@ page import="java.time.LocalDateTime" %>
<%@ page import="java.time.format.DateTimeFormatter" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
    LocalDateTime dateTime = LocalDateTime.now();
    DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
    request.setAttribute("date", formatter.format(dateTime));
%>
<head>
    <title>用户信息</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <link href="style/adminStyle.css" rel="stylesheet" type="text/css"/>
    <script src="js/jquery.js"></script>
    <script src="js/public.js"></script>
</head>
<body>
<div class="wrap">
    <div class="page-title">
        <span class="modular fl"><i class="user"></i><em>管理员列表</em></span>
        <span class="modular fr"><a href="revise_password.jsp" class="pt-link-btn">+添加管理员</a></span>
    </div>
    <table class="list-style Interlaced">
        <tr>
            <th>用户账号</th>
            <th>电子邮箱</th>
            <th>最后登陆时间</th>
            <th>操作</th>
        </tr>
        <tr>
            <td class="center">${sessionScope.user_name}</td>
            <td class="center">${sessionScope.email}</td>
            <td class="center">${requestScope.date}</td>
            <td class="center">
                <a href="revise_password.jsp"><img src="images/icon_edit.gif"/></a>
                <a><img src="images/icon_drop.gif"/></a>
            </td>
        </tr>
    </table>
</div>
</body>
</html>